import 'package:flutter/material.dart';

void main() =>
    runApp(MyApp(items: new List<String>.generate(1000, (i) => "我是第$i条数据")));

class MyApp extends StatelessWidget {
  final List<String> items;

  MyApp({Key key, this.items}) : super(key: key);

  @override
  Widget build(BuildContext context) {
    // TODO: implement build
    return new MaterialApp(
      title: "flutte demo",
      home: Scaffold(
        appBar: new AppBar(
          title: new Text("flutter world"),
        ),
        body: new ListView.builder(
          itemCount: items.length,
          itemBuilder: (context, index) {
            return new ListTile(
              title: new Text(items[index]),
            );
          },
        ),
      ),
    );
  }
}
